package ooday05;

public class StaticFinalDemo {
    /*
     -必须声明同时初始化
     -常常通过类名点来访问，不能被访问
     -建议：常量名所有字母都需大写，中间用_隔开
     */

    public static void main(String[] args) {
        System.out.println(Loo.PI);
        System.out.println(Loo.COUNT);//相当于System.out.println(5)
        System.out.println(5);
    }
}


class Loo{
    public static final double PI = 3.14159;

    public static int num =5;
    public static int COUNT = 5;
}

